function T = static_g1_tt(T, y, x, params)
% function T = static_g1_tt(T, y, x, params)
%
% File created by Dynare Preprocessor from .mod file
%
% Inputs:
%   T         [#temp variables by 1]  double   vector of temporary terms to be filled by function
%   y         [M_.endo_nbr by 1]      double   vector of endogenous variables in declaration order
%   x         [M_.exo_nbr by 1]       double   vector of exogenous variables in declaration order
%   params    [M_.param_nbr by 1]     double   vector of parameter values in declaration order
%
% Output:
%   T         [#temp variables by 1]  double   vector of temporary terms
%

assert(length(T) >= 29);

T = model_file.static_resid_tt(T, y, x, params);

T(21) = getPowerDeriv(y(1)*exp(y(32)),1-params(3),1);
T(22) = getPowerDeriv(T(6),1/params(2)-params(3),1);
T(23) = 1/exp(y(15));
T(24) = getPowerDeriv((params(6)-y(12))/y(7),T(2),1);
T(25) = getPowerDeriv(T(20),params(4)/(params(4)-1),1);
T(26) = getPowerDeriv(y(8)/y(28),1/params(10),1);
T(27) = getPowerDeriv(T(13),1-1/params(15),1);
T(28) = getPowerDeriv(T(13),(-1)/params(15),1);
T(29) = (-(y(3)*exp(y(15))))/(exp(y(15))*exp(y(15)));

end
